• Scripts are written in the DAL language, and can be executed by client shells, database applications or at the server console.
• Some scripts explain what they do on execution, others have a description placed in comments in the script itself. A knowledge of the DAL language is most useful in understanding the scripts.
• To execute a script, use the command:
execute file <script_name> ;
Note that <script_name> must be in double or single quotes.
• You may specify a path to the script file as follows:
execute file <script_name> in location <script_path>;
The path may be absolute or relative to the current working directory of the client or server.
Search paths
When the command execute file is issued, and no path is specified, the client or server searches for the script file:
(1) First in the current working directory (where the application was started),
(2) then on the 'local' scripts directory,
(3) and finally in the 'global' scripts directory, in the preferences folder.
If you wish to execute a script without specifying a path, place the scripts somewhere in this search path, but be careful of having duplicate files.
The Scripts directory
The Scripts directory is called 'Scripts', and may be found in a directory called: 'PrimeBase Setup', or simply 'Setup'.